package com.examination.system.administration;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author 寇淇芮
 * @Date 2019/8/27 13:57
 */
@Data
@ToString
@Entity
@GenericGenerator(name = "areaTypeId-uuid", strategy = "assigned")
@ApiModel
@Table(name=AdministrationTableName.AREATYPE)
public class AreaType implements Serializable {

    @Id
    @GeneratedValue(generator = "areaTypeId-uuid")
    @ApiModelProperty(value = "地区类型的标识")
    private String id;

    @ApiModelProperty(value = "地区类型名称")
    private String name;

}


